package com.lovo.pis.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lovo.pis.dto.PageBean;
import com.lovo.pis.dto.UserBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface IUserService {

    IPage<UserBean> queryAll(PageBean<UserBean> pageInfo);

    List<UserBean> queryAllUser();

    boolean removeById(int id);

    boolean addUser(UserBean userBean);

    boolean changeRole(UserBean userBean);

    int changePwd(int id,String oldPwd,String newPwd,String repNewPwd);

    UserBean login(HttpServletResponse response, String username, String password);

    UserBean queryById(int id);

    UserBean queryRealName(int id);

}
